import django_filters
from .models import *


class ArticleFilter(django_filters.rest_framework.FilterSet):
    """过滤器"""

    title = django_filters.CharFilter(lookup_expr='icontains')
    subTitle = django_filters.CharFilter(lookup_expr='icontains')
    content = django_filters.CharFilter(lookup_expr='icontains')
    class Meta:
        model = Article
        fields = '__all__'
